home *** CD-ROM | disk | FTP | other *** search
- //╔══════════════════════════════════════════════════════════════════════════╗
- //║ ║
- //║ This example show how to use FLI32 library with Automatic bank Switching ║
- //║ ║
- //║ ║
- //║ ║
- //╚══════════════════════════════════════════════════════════════════════════╝
-
- #include <stdlib.h>
- #include "..\resource\eos.h"
- #include <process.h>
-
- void main(int argn, char **argv)
- {
- Init_EOS();
-
- Fli_Selector=Init_Vesa_Bank();
-
- if (Load_Fli("..\\data\\test.flc")==NULL)
- Exit_Error (" ■ File not found !\x0D\x0A\x24");
-
- if (Init_Vesa(0x101)==NULL)
- Exit_Error (" ■ Mode SVGA not supported or VESA not found ! \x0D\x0A" \
- " To install a vesa driver, refer to your video card documentation. \x0D\x0A\x24");
-
- Fli_Scr_X=640;
- Fli_Scr_Y=480;
- Fli_Ligne_Shl=7;
- Fli_Svga=On;
- Fli_Decal_X=(640/2)-160;
- Fli_Decal_Y=(480/2)-100;
-
- First_Frame_Fli();
- while ( !kbhit() )
- {
- Wait_Vbl();
- Next_Frame_Fli();
- }
- Dispose_Fli();
- exit (0);
- }